package pl.edu.mimuw.irs.rcp.controller.action;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;

import pl.edu.mimuw.irs.rcp.controller.part.IRSNodeEditPart;

/**
 * @author Jakub Rauch
 * Created on: 2009-05-21
 */
public abstract class AbstractSelectionAction extends Action {
	
	// *** Attributes

	private IRSNodeEditPart nodeEditPart;
	// Getters and setters
	public IRSNodeEditPart getNodeEditPart() {
		return nodeEditPart;
	}
	public void setNodeEditPart(IRSNodeEditPart nodeEditPart) {
		this.nodeEditPart = nodeEditPart;
	}
	
	// *** Constructors

	public AbstractSelectionAction(IRSNodeEditPart nodeEditPart, String string, ImageDescriptor createFromFile) {
		super(string, createFromFile);
		setNodeEditPart(nodeEditPart);
	}
	
	// *** Methods
}
